handle

abstract override fun handle(payload: T, context: ServerPlayNetworkContext)

Handles a payload sent from a client

Author

fzzyhmstrs

Since

0.4.1

Parameters

payload

the CustomPayload for handling

context

ServerPlayNetworkContext a wrapper around platform context, used for getting various useful info and performing actions like replying to the payload